CVE-2018-1000025: Kreait/firebase php Jerome Gamez Firebase Admin SDK Vulnerability
HIGHCVE-2018-1000025 is a HIGH (CVSS 8.1) jerome gamez firebase admin sdk vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Kreait/firebase php libraries in the Packagist ecosystem. The issue involves jerome gamez firebase admin sdk for php incorrect access control vulnerability. Remediation is available by upgrading affected packages to version 3.8.1.
CVE-2018-1000025 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-1000025
To remediate this vulnerability, upgrade all affected Kreait/firebase php dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade kreait/firebase-php to 3.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for kreait/firebase-php
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-1000025, inspect your project dependencies for Kreait/firebase php:
inspect dependencies for kreait/firebase-php
Analyze the terminal output to locate any version of Kreait/firebase php in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Kreait/firebase php, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-1000025 Affected Kreait/firebase php Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kreait/firebase-php
|
Packagist |
≥ 3.2.0
< 3.8.1
|
3.8.1
|
References
Frequently Asked Questions
What is CVE-2018-1000025?
Which Kreait/firebase php versions are affected?
What version fixes CVE-2018-1000025?
Is kreait/firebase-php affected?
What is the CVSS score of CVE-2018-1000025?
What CWE is associated with CVE-2018-1000025?
How can I check Packagist dependencies for CVE-2018-1000025?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4gjj-r7w8-42cq",
"modified" : "2024-04-24T18:31:01Z",
"published" : "2022-05-13T01:48:29Z",
"aliases" : [ "CVE-2018-1000025" ],
"summary" : "Jerome Gamez Firebase Admin SDK for PHP Incorrect Access Control vulnerability",
"details" : "Jerome Gamez Firebase Admin SDK for PHP version from 3.2.0 to 3.8.0 contains a Incorrect Access Control vulnerability in `src/Firebase/Auth/IdTokenVerifier.php` does not verify for token signature that can result in JWT with any email address and user ID could be forged from an actual token, or from thin air. This attack appear to be exploitable via Attacker would only need to know email address of the victim on most cases.. This vulnerability appears to have been fixed in 3.8.1.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "kreait/firebase-php"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000025"
}, {
"type" : "WEB",
"url" : "https://github.com/kreait/firebase-php/pull/151"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/kreait/firebase-php/CVE-2018-1000025.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kreait/firebase-php"
}, {
"type" : "WEB",
"url" : "https://github.com/kreait/firebase-php/releases/tag/3.8.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-732" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-24T18:31:01Z",
"nvd_published_at" : "2018-02-09T23:29:00Z"
}
}