CVE-2019-16699: Sjbr/sr freecap Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-598p-rv6p-g7qc
CVSS 9.8
CWE-20
Published
Advisory Summary

CVE-2019-16699 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Sjbr/sr freecap libraries in the Packagist ecosystem. The issue involves sr_freecap for typo3 rce vulnerability. Remediation is available by upgrading affected packages to version 2.5.3, 2.4.6.

CVE-2019-16699 at a Glance

CVE Identifier CVE-2019-16699
GHSA Identifier GHSA-598p-rv6p-g7qc
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Sjbr/sr freecap
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:U/C:H/I:H/A:H).

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

How to Fix CVE-2019-16699

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

sjbr/sr-freecap fixed: 2.5.3
Upgrade sjbr/sr-freecap to 2.5.3
sjbr/sr-freecap fixed: 2.4.6
Upgrade sjbr/sr-freecap to 2.4.6
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 sjbr/sr-freecap

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-16699, inspect your project dependencies for Sjbr/sr freecap:

inspect dependencies for sjbr/sr-freecap

Analyze the terminal output to locate any version of Sjbr/sr freecap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.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 Sjbr/sr freecap, 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

The sr_freecap (aka freeCap CAPTCHA) extension 2.4.5 and below and 2.5.2 and below for TYPO3 fails to sanitize user input, which allows execution of arbitrary Extbase actions, resulting in Remote Code Execution.

CVE-2019-16699 Affected Sjbr/sr freecap Versions

2 component(s)
Fixed Versions:
2.5.32.4.6
Product / Package Ecosystem Affected Versions Fixed Version
sjbr/sr-freecap
Packagist
≥ 2.5.0
< 2.5.3
2.5.3
sjbr/sr-freecap
Packagist
< 2.4.6
2.4.6

References

Frequently Asked Questions

What is CVE-2019-16699?
CVE-2019-16699 is a security vulnerability in Sjbr/sr freecap involving sr_freecap for Typo3 RCE Vulnerability under CWE-20: Improper Input Validation.
Which Sjbr/sr freecap versions are affected?
Affected versions include releases prior to 2.5.3, 2.4.6 across affected packages: sjbr/sr-freecap.
What version fixes CVE-2019-16699?
Upgrading to 2.5.3, 2.4.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sjbr/sr-freecap affected?
Yes, sjbr/sr-freecap is affected in releases prior to 2.5.3, 2.4.6. Upgrade your dependency to 2.5.3, 2.4.6 or later.
What is the CVSS score of CVE-2019-16699?
CVE-2019-16699 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-16699?
CVE-2019-16699 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-2019-16699?
Run the dependency tree command: 'inspect dependencies for sjbr/sr-freecap'. 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-598p-rv6p-g7qc",
  "modified" : "2023-09-26T16:45:55Z",
  "published" : "2022-05-24T16:58:56Z",
  "aliases" : [ "CVE-2019-16699" ],
  "summary" : "sr_freecap for Typo3 RCE Vulnerability",
  "details" : "The sr_freecap (aka freeCap CAPTCHA) extension 2.4.5 and below and 2.5.2 and below for TYPO3 fails to sanitize user input, which allows execution of arbitrary Extbase actions, resulting in Remote Code Execution.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sjbr/sr-freecap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sjbr/sr-freecap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16699"
  }, {
    "type" : "WEB",
    "url" : "https://extensions.typo3.org/extension/sr_freecap"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mavolkmer/sr-freecap"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-ext-sa-2019-018"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-18T18:46:29Z",
    "nvd_published_at" : "2019-10-16T19:15:00Z"
  }
}