Vulnerabilities in pkg:pypi/kinto-attachment
PACKAGECVE-2024-1314 is a HIGH (CVSS 8.6) kinto attachment's attachments can be vulnerability (General Security Weakness) affecting Kinto attachment libraries in the PyPI ecosystem. The issue involves kinto attachment's attachments can be replaced on read-only records. Remediation is available by upgrading affected packages to version 6.4.0.
pkg:pypi/kinto-attachment
Vulnerability advisories affecting package pkg:pypi/kinto-attachment. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hvp4-vrv2-8wrq | CVE-2024-1314 | HIGH | Kinto Attachment's attachments can be replaced on read-only records |
CVE-2024-1314 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2024-1314
To remediate this vulnerability, upgrade all affected Kinto attachment dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install kinto-attachment>=6.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show kinto-attachment
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-1314, inspect your installed packages using pip:
pip show kinto-attachment
Analyze the terminal output to locate any version of Kinto attachment in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.0), your application is affected.
Note: The pip show kinto-attachment command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Kinto attachment, 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-2024-1314 Affected Kinto attachment Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kinto-attachment
|
PyPI |
< 6.4.0
|
6.4.0
|
References
Frequently Asked Questions
What is CVE-2024-1314?
Which Kinto attachment versions are affected?
What version fixes CVE-2024-1314?
Is kinto-attachment affected?
What is the CVSS score of CVE-2024-1314?
What CWE is associated with CVE-2024-1314?
How can I check PyPI dependencies for CVE-2024-1314?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hvp4-vrv2-8wrq",
"modified" : "2024-02-08T18:32:10Z",
"published" : "2024-02-08T18:32:10Z",
"aliases" : [ "CVE-2024-1314" ],
"summary" : "Kinto Attachment's attachments can be replaced on read-only records",
"details" : "### Impact\n\nThe attachment file of an existing record can be replaced if the user has `\"read\"` permission on one of the parent (collection or bucket).\n\nAnd if the `\"read\"` permission is given to `\"system.Everyone\"` on one of the parent, then the attachment can be replaced on a record using an anonymous request.\n\nNote that if the parent has no explicit read permission, then the records attachments are safe.\n\n### Patches\n\n- Patch released in kinto-attachment 6.4.0\n- https://github.com/Kinto/kinto-attachment/commit/f4a31484f5925cbc02b59ebd37554538ab826ca1\n\n### Workarounds\n\nNone if the read permission has to remain granted.\n\nUpdating to 6.4.0 or applying the patch individually (if updating is not feasible) is strongly recommended.\n\n### References\n\n- https://bugzilla.mozilla.org/show_bug.cgi?id=1879034",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "kinto-attachment"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.4.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.3.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Kinto/kinto-attachment/security/advisories/GHSA-hvp4-vrv2-8wrq"
}, {
"type" : "WEB",
"url" : "https://github.com/Kinto/kinto-attachment/commit/f4a31484f5925cbc02b59ebd37554538ab826ca1"
}, {
"type" : "WEB",
"url" : "https://bugzilla.mozilla.org/show_bug.cgi?id=1879034"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Kinto/kinto-attachment"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-08T18:32:10Z",
"nvd_published_at" : null
}
}