CVE-2023-4157: Omeka/omeka s Omeka/omeka-s Improper Input Validation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-fxc5-pr68-2px3
CVSS 5.2
CWE-20 CWE-74
Published
Advisory Summary

CVE-2023-4157 is a MODERATE (CVSS 5.2) omeka/omeka-s improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Omeka/omeka s libraries in the Packagist ecosystem. The issue involves omeka/omeka-s improper input validation vulnerability. Remediation is available by upgrading affected packages to version 4.0.3.

CVE-2023-4157 at a Glance

CVE Identifier CVE-2023-4157
GHSA Identifier GHSA-fxc5-pr68-2px3
Severity MODERATE
CVSS v3.1 Base Score 5.2
CWE Classification CWE-20: Improper Input Validation
Affected Product Omeka/omeka s
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-4157

To remediate this vulnerability, upgrade all affected Omeka/omeka s dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omeka/omeka-s fixed: 4.0.3
Upgrade omeka/omeka-s to 4.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for omeka/omeka-s

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-4157, inspect your project dependencies for Omeka/omeka s:

inspect dependencies for omeka/omeka-s

Analyze the terminal output to locate any version of Omeka/omeka s in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.3), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Omeka/omeka s, 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

Improper Input Validation in GitHub repository omeka/omeka-s prior to 4.0.3.

CVE-2023-4157 Affected Omeka/omeka s Versions

1 component(s)
Fixed Versions:
4.0.3
Product / Package Ecosystem Affected Versions Fixed Version
omeka/omeka-s
Packagist
< 4.0.3
4.0.3

References

Frequently Asked Questions

What is CVE-2023-4157?
CVE-2023-4157 is a security vulnerability in Omeka/omeka s involving omeka/omeka-s Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Omeka/omeka s versions are affected?
Affected versions include releases prior to 4.0.3 across affected packages: omeka/omeka-s.
What version fixes CVE-2023-4157?
Upgrading to 4.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omeka/omeka-s affected?
Yes, omeka/omeka-s is affected in releases prior to 4.0.3. Upgrade your dependency to 4.0.3 or later.
What is the CVSS score of CVE-2023-4157?
CVE-2023-4157 has a CVSS v3.1 base score of 5.2 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2023-4157?
CVE-2023-4157 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2023-4157?
Run the dependency tree command: 'inspect dependencies for omeka/omeka-s'. 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-fxc5-pr68-2px3",
  "modified" : "2023-10-24T02:46:18Z",
  "published" : "2023-08-04T18:30:39Z",
  "aliases" : [ "CVE-2023-4157" ],
  "summary" : "omeka/omeka-s Improper Input Validation vulnerability",
  "details" : "Improper Input Validation in GitHub repository omeka/omeka-s prior to 4.0.3.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "omeka/omeka-s"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4157"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omeka/omeka-s/commit/8b72619d9731b32dd21ab6dcaa01ccc3bbf0db63"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/omeka/omeka-s"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/abc3521b-1238-4c4e-97f1-2957db670014"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-24T02:46:18Z",
    "nvd_published_at" : "2023-08-04T18:15:17Z"
  }
}