Vulnerabilities in pkg:pypi/kinto-attachment

PACKAGE
Advisory Identifier: GHSA-hvp4-vrv2-8wrq
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/kinto-attachment

1 Known Advisory Record(s)

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

CVE Identifier CVE-2024-1314
GHSA Identifier GHSA-hvp4-vrv2-8wrq
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification General Security Weakness
Affected Product Kinto attachment
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

kinto-attachment fixed: 6.4.0
pip install kinto-attachment>=6.4.0
Verify Direct and Transitive Dependencies

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

### Impact The attachment file of an existing record can be replaced if the user has `"read"` permission on one of the parent (collection or bucket). And 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. Note that if the parent has no explicit read permission, then the records attachments are safe. ### Patches - Patch released in kinto-attachment 6.4.0 - https://github.com/Kinto/kinto-attachment/commit/f4a31484f5925cbc02b59ebd37554538ab826ca1 ### Workarounds None if the read permission has to remain granted. Updating to 6.4.0 or applying the patch individually (if updating is not feasible) is strongly recommended. ### References - https://bugzilla.mozilla.org/show_bug.cgi?id=1879034

CVE-2024-1314 Affected Kinto attachment Versions

1 component(s)
Fixed Versions:
6.4.0
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?
CVE-2024-1314 is a security vulnerability in Kinto attachment involving Kinto Attachment's attachments can be replaced on read-only records under General Security Weakness.
Which Kinto attachment versions are affected?
Affected versions include releases prior to 6.4.0 across affected packages: kinto-attachment.
What version fixes CVE-2024-1314?
Upgrading to 6.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kinto-attachment affected?
Yes, kinto-attachment is affected in releases prior to 6.4.0. Upgrade your dependency to 6.4.0 or later.
What is the CVSS score of CVE-2024-1314?
CVE-2024-1314 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2024-1314?
CVE-2024-1314 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2024-1314?
Run the dependency tree command: 'pip show kinto-attachment'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}