CVE-2017-14077: Dapphp/securimage Securimage HTML Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-q6v4-xjp2-8ggv
CVSS 6.1
CWE-94
Published
Advisory Summary

CVE-2017-14077 is a MODERATE (CVSS 6.1) securimage html injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Dapphp/securimage libraries in the Packagist ecosystem. The issue involves securimage html injection. Remediation is available by upgrading affected packages to version 3.6.6.

CVE-2017-14077 at a Glance

CVE Identifier CVE-2017-14077
GHSA Identifier GHSA-q6v4-xjp2-8ggv
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Dapphp/securimage
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

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

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

How to Fix CVE-2017-14077

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

dapphp/securimage fixed: 3.6.6
Upgrade dapphp/securimage to 3.6.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 dapphp/securimage

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-14077, inspect your project dependencies for Dapphp/securimage:

inspect dependencies for dapphp/securimage

Analyze the terminal output to locate any version of Dapphp/securimage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.6), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Dapphp/securimage, 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

HTML Injection in Securimage prior to 3.6.6 allows remote attackers to inject arbitrary HTML into an e-mail message body via the `$_SERVER['HTTP_USER_AGENT']` parameter to `example_form.ajax.php` or `example_form.php`.

CVE-2017-14077 Affected Dapphp/securimage Versions

1 component(s)
Fixed Versions:
3.6.6
Product / Package Ecosystem Affected Versions Fixed Version
dapphp/securimage
Packagist
< 3.6.6
3.6.6

References

Frequently Asked Questions

What is CVE-2017-14077?
CVE-2017-14077 is a security vulnerability in Dapphp/securimage involving Securimage HTML Injection under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Dapphp/securimage versions are affected?
Affected versions include releases prior to 3.6.6 across affected packages: dapphp/securimage.
What version fixes CVE-2017-14077?
Upgrading to 3.6.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dapphp/securimage affected?
Yes, dapphp/securimage is affected in releases prior to 3.6.6. Upgrade your dependency to 3.6.6 or later.
What is the CVSS score of CVE-2017-14077?
CVE-2017-14077 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2017-14077?
CVE-2017-14077 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2017-14077?
Run the dependency tree command: 'inspect dependencies for dapphp/securimage'. 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-q6v4-xjp2-8ggv",
  "modified" : "2024-04-23T17:14:29Z",
  "published" : "2022-05-13T01:11:18Z",
  "aliases" : [ "CVE-2017-14077" ],
  "summary" : "Securimage HTML Injection ",
  "details" : "HTML Injection in Securimage prior to 3.6.6 allows remote attackers to inject arbitrary HTML into an e-mail message body via the `$_SERVER['HTTP_USER_AGENT']` parameter to `example_form.ajax.php` or `example_form.php`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "dapphp/securimage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-14077"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dapphp/securimage/commit/2c7ce3f6fa5ab86fd0ac8e3b4d5d72a21329d8ea"
  }, {
    "type" : "WEB",
    "url" : "https://advisory.checkmarx.net/advisory/CX-2017-4223"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dapphp/securimage"
  }, {
    "type" : "WEB",
    "url" : "https://www.checkmarx.com/advisories/html-injection-securimage"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-23T17:14:29Z",
    "nvd_published_at" : "2017-11-18T01:29:00Z"
  }
}