umiushi-lab / carbon
Carbon 1.36.2 with security fixes backported, for EC-CUBE 3.0.x shops that cannot move off the versions EC-CUBE 3.0.18 ships
Requires
- php: >=5.3.9
- symfony/translation: ~2.6 || ~3.0 || ~4.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
- nesbot/carbon: 1.36.2
This package is auto-updated.
Last update: 2026-11-26 07:00:28 UTC
README
EC-CUBE 3.0.18 requires nesbot/carbon ~1.20. Carbon 1.x no longer receives fixes. This fork keeps 1.36.2 and backports the published security fix.
Fixed
| Advisory | What |
|---|---|
| CVE-2025-22145 | Carbon::setLocale() included an arbitrary file when given unvalidated input |
Install
Requires Composer 2. In the shop's project root:
composer require umiushi-lab/carbon:^1.36.2
The package replaces nesbot/carbon 1.36.2, so Composer removes the original and every other package keeps working against the same version.
EC-CUBE 3.0.18's own composer.json lists mikey179/vfsStream in require-dev; Composer 2 only accepts it in lowercase (mikey179/vfsstream), so fix that line first.
What this is, and is not
- The base is exactly the version EC-CUBE 3.0.18 ships. Nothing is upgraded; only security fixes are added, each as its own commit on the
eccube3/1.36branch. - Each fix whose weakness could be reproduced on the base version was checked with a script that uses the weakness before the fix and fails to use it after, on PHP 5.6, 7.1 and 7.3. A few could not be reproduced there (Windows-only code, and cases the old code happened not to reach); those are ported as hardening. PHP 5.3 to 5.5 were not run (the changes avoid syntax newer than 5.3).
- This is not an official release of the upstream project and is not supported by its maintainers. Upstream: https://github.com/briannesbitt/Carbon
- EC-CUBE 3 と、その部品の古い系列には、もう公式の修正が出ません。3.0.18 が使っているバージョンのまま、上流の修正だけを移したものです。保守: うみうしラボ